Optimal. Leaf size=105 \[ -\frac{d-e}{36 (x+1)}+\frac{d+e}{12 (1-x)}+\frac{d+2 e}{36 (2-x)}+\frac{1}{36} (2 d+5 e) \log (1-x)-\frac{1}{432} (35 d+58 e) \log (2-x)+\frac{1}{108} (2 d+e) \log (x+1)+\frac{1}{144} (d-2 e) \log (x+2) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.386524, antiderivative size = 105, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095 \[ -\frac{d-e}{36 (x+1)}+\frac{d+e}{12 (1-x)}+\frac{d+2 e}{36 (2-x)}+\frac{1}{36} (2 d+5 e) \log (1-x)-\frac{1}{432} (35 d+58 e) \log (2-x)+\frac{1}{108} (2 d+e) \log (x+1)+\frac{1}{144} (d-2 e) \log (x+2) \]
Antiderivative was successfully verified.
[In] Int[((2 + x)*(d + e*x))/(4 - 5*x^2 + x^4)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((2+x)*(e*x+d)/(x**4-5*x**2+4)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.165186, size = 97, normalized size = 0.92 \[ \frac{1}{432} \left (\frac{12 \left (d \left (-5 x^2+6 x+5\right )+2 e \left (5-2 x^2\right )\right )}{x^3-2 x^2-x+2}+12 (2 d+5 e) \log (1-x)-(35 d+58 e) \log (2-x)+4 (2 d+e) \log (x+1)+3 (d-2 e) \log (x+2)\right ) \]
Antiderivative was successfully verified.
[In] Integrate[((2 + x)*(d + e*x))/(4 - 5*x^2 + x^4)^2,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.022, size = 106, normalized size = 1. \[{\frac{\ln \left ( 2+x \right ) d}{144}}-{\frac{\ln \left ( 2+x \right ) e}{72}}-{\frac{d}{-12+12\,x}}-{\frac{e}{-12+12\,x}}+{\frac{\ln \left ( -1+x \right ) d}{18}}+{\frac{5\,\ln \left ( -1+x \right ) e}{36}}-{\frac{d}{36+36\,x}}+{\frac{e}{36+36\,x}}+{\frac{\ln \left ( 1+x \right ) d}{54}}+{\frac{\ln \left ( 1+x \right ) e}{108}}-{\frac{35\,\ln \left ( x-2 \right ) d}{432}}-{\frac{29\,\ln \left ( x-2 \right ) e}{216}}-{\frac{d}{36\,x-72}}-{\frac{e}{18\,x-36}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((2+x)*(e*x+d)/(x^4-5*x^2+4)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.700365, size = 119, normalized size = 1.13 \[ \frac{1}{144} \,{\left (d - 2 \, e\right )} \log \left (x + 2\right ) + \frac{1}{108} \,{\left (2 \, d + e\right )} \log \left (x + 1\right ) + \frac{1}{36} \,{\left (2 \, d + 5 \, e\right )} \log \left (x - 1\right ) - \frac{1}{432} \,{\left (35 \, d + 58 \, e\right )} \log \left (x - 2\right ) - \frac{{\left (5 \, d + 4 \, e\right )} x^{2} - 6 \, d x - 5 \, d - 10 \, e}{36 \,{\left (x^{3} - 2 \, x^{2} - x + 2\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)*(x + 2)/(x^4 - 5*x^2 + 4)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.277462, size = 285, normalized size = 2.71 \[ -\frac{12 \,{\left (5 \, d + 4 \, e\right )} x^{2} - 72 \, d x - 3 \,{\left ({\left (d - 2 \, e\right )} x^{3} - 2 \,{\left (d - 2 \, e\right )} x^{2} -{\left (d - 2 \, e\right )} x + 2 \, d - 4 \, e\right )} \log \left (x + 2\right ) - 4 \,{\left ({\left (2 \, d + e\right )} x^{3} - 2 \,{\left (2 \, d + e\right )} x^{2} -{\left (2 \, d + e\right )} x + 4 \, d + 2 \, e\right )} \log \left (x + 1\right ) - 12 \,{\left ({\left (2 \, d + 5 \, e\right )} x^{3} - 2 \,{\left (2 \, d + 5 \, e\right )} x^{2} -{\left (2 \, d + 5 \, e\right )} x + 4 \, d + 10 \, e\right )} \log \left (x - 1\right ) +{\left ({\left (35 \, d + 58 \, e\right )} x^{3} - 2 \,{\left (35 \, d + 58 \, e\right )} x^{2} -{\left (35 \, d + 58 \, e\right )} x + 70 \, d + 116 \, e\right )} \log \left (x - 2\right ) - 60 \, d - 120 \, e}{432 \,{\left (x^{3} - 2 \, x^{2} - x + 2\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)*(x + 2)/(x^4 - 5*x^2 + 4)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 16.4521, size = 1032, normalized size = 9.83 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((2+x)*(e*x+d)/(x**4-5*x**2+4)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.286671, size = 132, normalized size = 1.26 \[ \frac{1}{144} \,{\left (d - 2 \, e\right )}{\rm ln}\left ({\left | x + 2 \right |}\right ) + \frac{1}{108} \,{\left (2 \, d + e\right )}{\rm ln}\left ({\left | x + 1 \right |}\right ) + \frac{1}{36} \,{\left (2 \, d + 5 \, e\right )}{\rm ln}\left ({\left | x - 1 \right |}\right ) - \frac{1}{432} \,{\left (35 \, d + 58 \, e\right )}{\rm ln}\left ({\left | x - 2 \right |}\right ) - \frac{{\left (5 \, d + 4 \, e\right )} x^{2} - 6 \, d x - 5 \, d - 10 \, e}{36 \,{\left (x + 1\right )}{\left (x - 1\right )}{\left (x - 2\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)*(x + 2)/(x^4 - 5*x^2 + 4)^2,x, algorithm="giac")
[Out]